<template>
  <tupian :src="prop.src">
    <template v-slot:error>
      <tupian :src="defaulttouxiang"></tupian>
    </template>
  </tupian>
</template>

<script setup>
import {defineProps,ref} from "vue"
import touxiangurl from "@/assets/img/touxiang.jpg"
const prop = defineProps({
  src: {
    default: "",
    type: String,
  },
})
const defaulttouxiang = ref(touxiangurl)
</script>

<style scoped>

</style>
